const Router = require("koa-router");
const router = new Router({
  prefix: "/api",
});

const {
  getQueryList,
  getSingleQueryList,
  getAddList,
  getDeleteList,
  getUpdateList,
} = require("./cotroll");

router.get("/", getQueryList);
router.get("/list/:id", getSingleQueryList);
router.post("/list/add", getAddList);
router.delete("/list/:id", getDeleteList);
router.put("/list", getUpdateList);

module.exports = router;
